package com.invengo.library_rfid.entity;


import java.io.Serializable;

public class ScanSettingTagReadPatternEntity implements Serializable {


    private int code;//e.g.0 读取类型
    private String name;//e.g.读epc
    /***** SQLite
     id | code | name        | tagTypeCode
     1  | 0    | 读epc       | 0    | 6C
     2  | 1    | 读tid       | 0    | 6C
     3  | 2    | 通用读      | 0    | 6C
     4  | 3    | 读id        | 1    | 6B
     5  | 4    | 混合读      | 1    | 6C&6B
     6  | 5    | 盘存        | 2    | GB
     7  | 6    | 访问读      | 2    | GB
     8  | 7    | 组合读      | 2    | GB
     9  | 8    | 全区域读    | 2    | GB
     */
    private int tagTypeCode;
    private int enabled;//0-true, 1-false
    private int address;//首地址(6C-用户数据首地址；6C&6B-用户数据首地址；GB.访问读-首地址；GB.全区域读-子区首地址)
    private int len;//长度(6C-用户数据长度；6C&6B-用户数据长度；GB.访问读-长度；GB.全区域读-子区长度)
    private int tidIdLen;//长度(6C-TID长度；6C&6B-ID长度；GB.组合读-长度；GB.全区域读-信息区长度)
    private int target;//目标
    private int session;//会话
    private int conditional;//条件
    //访问读、组合读
    private String password;//GB.访问读-密码；GB.组合读-访问密码
    private int bank;//GB.访问读-区域.0-编码区、1-信息区、3-用户子区
    private String tidPassword;//GB.全区域读-信息区访问密码
    private int epcLen;//GB.全区域读-编码区长度
    private int userBank;//GB.访问读-用户子区编号；GB.全区域读-用户子区
    private String userBankPassword;//GB.全区域读-子区访问密码
    private int temperature;//0-true, 1-false,用于测温标签

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTagTypeCode() {
        return tagTypeCode;
    }

    public void setTagTypeCode(int tagTypeCode) {
        this.tagTypeCode = tagTypeCode;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }

    public int getAddress() {
        return address;
    }

    public void setAddress(int address) {
        this.address = address;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public int getTidIdLen() {
        return tidIdLen;
    }

    public void setTidIdLen(int tidIdLen) {
        this.tidIdLen = tidIdLen;
    }

    public int getTarget() {
        return target;
    }

    public void setTarget(int target) {
        this.target = target;
    }

    public int getSession() {
        return session;
    }

    public void setSession(int session) {
        this.session = session;
    }

    public int getConditional() {
        return conditional;
    }

    public void setConditional(int conditional) {
        this.conditional = conditional;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getBank() {
        return bank;
    }

    public void setBank(int bank) {
        this.bank = bank;
    }

    public String getTidPassword() {
        return tidPassword;
    }

    public void setTidPassword(String tidPassword) {
        this.tidPassword = tidPassword;
    }

    public int getEpcLen() {
        return epcLen;
    }

    public void setEpcLen(int epcLen) {
        this.epcLen = epcLen;
    }

    public int getUserBank() {
        return userBank;
    }

    public void setUserBank(int userBank) {
        this.userBank = userBank;
    }

    public String getUserBankPassword() {
        return userBankPassword;
    }

    public void setUserBankPassword(String userBankPassword) {
        this.userBankPassword = userBankPassword;
    }

    public int getTemperature() {
        return temperature;
    }

    public void setTemperature(int temperature) {
        this.temperature = temperature;
    }
}
